import type { LoginParams, LoginRes, Profile } from '@/types/user'
import {request} from '@/utils/reuqest'
export const loginApi = (data:LoginParams)=>{
  return request<{token:LoginRes}>('/park/login', 'POST', data)
}

/**
 * 获取用户信息
 * @returns 
 */
export const getProfileAPI = () => {
  return request<Profile>('/park/user/profile')
}